import React, { Component } from 'react'
import eventBus from '../eventBus'

export default class B extends Component {
  render() {
    return (
      <div>
        <button onClick={this.emitHH}>传参</button>
        <button onClick={this.eventBusSentData}>eventBus传参</button>
      </div>
    )
  }
  eventBusSentData = () => {
    eventBus.emit('getdata', '这是B使用eventbus传的参数')
  }
  emitHH = () => {
    React.hh('123')
  }
}
